package ddd.ajava.chapter4.question2;
@Label(fieldName="人类")
public class Person {

	@Column(value="姓名",nullable=false,maxlength=20,minlength=5)
	private String name;
	@Column(value="性别",nullable=false)
	private String sex;
	@Column(value="年龄",nullable=true,maxvalue=35,minvalue=10)
	private Integer age;
	@Column(value="身份证号",nullable=false,maxlength=10,minlength=5)
	private String idNo;
	@Column(value="是否已婚",nullable=true)
	private Boolean isMerried;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	public String getIdNo() {
		return idNo;
	}
	public void setIdNo(String idNo) {
		this.idNo = idNo;
	}
	public Boolean getIsMerried() {
		return isMerried;
	}
	public void setIsMerried(Boolean isMerried) {
		this.isMerried = isMerried;
	}
}
